import React from 'react'
import { Prompt } from 'react-router-dom/cjs/react-router-dom.min'

export default function MyForm() {
  return (
    <div>
      <Prompt message={'将要离开页面，确认吗！'} when={true} />
      <h2>表单</h2>
      <input type='text' />
    </div>
  )
}
